package zt.song.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jakarta.annotation.Resource;
import zt.song.domain.Student;
import zt.song.service.StudentService;
import zt.song.mapper.StudentMapper;
import org.springframework.stereotype.Service;

/**
* @author 宋伟宁
* @description 针对表【t_student】的数据库操作Service实现
* @createDate 2023-11-23 09:50:28
*/
@Service
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Student>
    implements StudentService{

    @Resource
    private StudentMapper studentMapper;

    @Override
    public Page<Student> pagelist(Integer offset, Integer pagesize) {
        Page<Student> page = new Page<>(offset,pagesize);
        return this.studentMapper.selectPage(page,null);
    }
}




